package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.FollowGetListTask.FollowGetListRequest;
import com.smiier.skin.net.FollowGetListTask.FollowGetListResponse;
import com.smiier.skin.net.entity.Follow;
import com.smiier.skin.util.GlobalSettings;

/**
 * 获取关注列表
 * 
 * @author 杨文华
 * 
 */
public class FollowGetListTask extends
		NetTask<FollowGetListRequest, FollowGetListResponse> {

	public static class FollowGetListRequest extends ORequest {
		public Long startID;
		public String token;
		public int type = GlobalSettings.FOLLOW_TYPE_USER;
		public int targetType = -1;
		public int pagesize;
		public long uid;
		public String appname = Constant.APP_NAME;
	}

	public static class FollowGetListResponse extends OResponse {
		public FollowList Res;
	}

	public static class FollowList implements INoProguard {
		public int Count;
		public ArrayList<Follow> Follows;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Follow.GetList";
		mRequestMethod = METHOD_GET;
	}

}
